package demo09_decorator.decorator;

import demo09_decorator.Component.EncryptionModule;

public class CharDecorator implements EncryptionModule<String> {

    private EncryptionModule<String> stringEncryptionModule;

    public CharDecorator(EncryptionModule<String> stringEncryptionModule) {
        this.stringEncryptionModule = stringEncryptionModule;
    }

    @Override
    public String encypt(String str) {
        return  stringEncryptionModule.encypt(str);
    }
}
